<%--
  Created by IntelliJ IDEA.
  User: dzh
  Date: 2021/5/24
  Time: 23:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>这里是九九乘法表</title>
</head>
<body>
<h1 align="left">九九乘法表</h1>
<table>
    <%
        for (int i = 1; i < 10; i++) {
            for (int j = 1; j <= i; j++) {
    %>
                <%=j + "*" + i + "=" + i * j %>
    <%
            }
    %>
    <br/>
    <%
        }
    %>

    <hr>对以上代码进行美化，放进table中</hr>

    <% for (int i = 1; i < 10; i++) { %>
    <tr>
        <% for (int j = 1; j <= i; j++) { %>
        <td>
            <%= j + "*" + i + "=" + i * j%>
        </td>
        <% } %></tr>
    <% } %>
</table>
</body>
</html>
